import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dell
 * Date: 2023-12-10
 * Time: 17:33
 */
public class test2 {
    public static void main(String[] args) {
        String str1="welcome to bit";
        String str2="come";
        ArrayList<Character> list = new ArrayList<>();
        for (int i=0;i<str1.length();i++){
            char ch=str1.charAt(i);
            list.add(ch);
        }
        System.out.println(list);
        //list.remove(0);
        System.out.println(list);
        for (int j=0;j<str2.length();j++){
            char ch1=str2.charAt(j);
            for (int i = 0; i < list.size(); i++) {
                if(list.get(i).equals(ch1)){
                    list.remove(i);
                }
            }

        }
        System.out.println(list);

    }
}